You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtx Class > TMtx Methods > TMtx.MeanCols Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtx.MeanCols Method

Calculates the mean value of each of the matrix columns.

Syntax
C#
Visual Basic
public void MeanCols([In] TVec result);

Calculate the mean vale of each of the calling matrix columns and store the results in result vector. The Length and TMtxVec.ComplexComplexproperties of the result vector are adjusted automatically.

var A: TMtx; res: TVec; begin A := TMtx.Create; res := TVec.Create; try A.SetIt(2,2,false,[1,5, -3,6]); A.MeanCols(res); // res = (-1.0, 5.5) finally A.Free; res.Free; end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!